]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
theme/drawing: Do not use accent color for focus ring in lockscreen
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Thu, 3 Sep 2026 15:21:51 +0000 (17:21 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 13 Sep 2026 17:39:10 +0000 (19:39 +0200)
The lockscreen has no accent color anywhere, the controls are always
using the text color for the focus ring too, so do the same with buttons
following the same logic used by entries too

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4355>
(cherry picked from commit c2a0812a165057ba09ac441d95184e25c2ee8e34)

data/theme/gnome-shell-sass/_drawing.scss

index d98cb49397aa9ded7c44123c752beb4206848167..3ad83e01a3dd757787825752309408aa1ac77d6f 100644 (file)
     @if $style == 'default' {
       @include focus_ring($fc:$accent_borders_color);
     }
+    // use the text color for the focus ring in lockscreen
+    @if $style == 'lockscreen' {
+      @include focus_ring($fc: transparentize($tc, if($contrast == 'high', 0.3, 0.6)));
+    }
     // change background color if style is flat
     @if $style == 'flat' {
       $button_bg_color: transparentize($button_bg_color, 0.75);